<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>审批</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="../static/css/font.css">
		<link rel="stylesheet" href="../static/css/weadmin.css">
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	</head>

	<body>
		<div id="approvalApp">
			<div class="weadmin-nav">
				<span class="layui-breadcrumb" style="visibility: visible;">
					<a href="">首页</a>
					<span lay-separator="">/</span>
					<a href="">算法进度</a>
					<span lay-separator="">/</span>
					<a href="">
						<cite>我的进度</cite></a>
				</span>
				<a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right"
					href="#" title="刷新" @click="approvalClick">
					<i class="layui-icon" style="line-height:30px">刷新</i></a>
			</div>
			<div class="weadmin-body">
				<table class="layui-table">
					<thead>
						<tr>
							<th>请求ID</th>
							<th>用户ID</th>
							<th>用户姓名</th>
							<th>算法名</th>
							<th>算法执行开始时间</th>
							<th>算法执行结束时间</th>
							<th>算法效果 </th>
							<th>状态</th>
						</tr>
					</thead>
					<tbody>
						<tr v-for="(item,key) of approvalList">
							<!-- <td>
								<input class="layui-form-checkbox" lay-skin="primary" type="checkbox" />
							</td> -->
							<td>{{item.resumeId}}</td>
							<td>{{item.userId}}</td>
							<td>{{item.userName}}</td>
							<td>{{item.summary}}</td>
							<td>{{item.createTime}}</td>
							<td>{{item.updateTime}}</td>
							<td>{{item.level}}</td>
							<!-- <td>{{item.state}}</td> -->
							<td class="td-status">
								<span class="layui-btn layui-btn-normal layui-btn-xs">{{item.state ? "审核通过":"待审核"}}</span>
							</td>
						</tr>
					</tbody>
				</table>
				<!-- <div class="page">
					<div>
						<a class="prev" href="">&lt;&lt;</a>
						<a class="num" href="">1</a>
						<span class="current">2</span>
						<a class="num" href="">3</a>
						<a class="num" href="">489</a>
						<a class="next" href="">&gt;&gt;</a>
					</div>
				</div> -->
			</div>
		</div>
		
		<script src="../lib/layui/layui.js" charset="utf-8"></script>
		<script src="../static/js/admin.js" type="text/javascript" charset="utf-8"></script>
		<!-- <script src="../static/js/eleDel.js" type="text/javascript" charset="utf-8"></script> -->
	</body>
	<script src="../js/request.js"></script>
	<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
	<script type="text/javascript">
		var vm=new Vue({
			el:'#approvalApp',
			data:{
				ids: [],
				approvalList: []
			},
			methods:{
				callbackApprovalList(e) {
					console.log(e)
					if (e.flag && e.data != null&& e.code == 20000) {
						this.approvalList = e.data
						console.log(this.approvalList)
					} else {
						window.alert(e.message)
					}
				},
				approvalClick() {
					approval = {}
					approval["state"] = 0
					
					// console.log(user)
					// 异步回调
					getApprovalList(approval, this.callbackApprovalList)
					// console.log(JSON.parse(localStorage.userList))
				}
			}
		})
	</script>
</html>
